<?php
$server = new swoole_server("0.0.0.0", 3333);
$server->on('connect', function ($server, $fd) {
    echo "Client: Connect=====$fd===.\n";
});
$server->on('receive', function (\Swoole\Server $ser, $fd, $reactor_id, $data) {
    echo "Client: Receive=====$fd=$data.\n";
    $ser->send($fd, "Client: Receive=====$data.\n");
    $ser->after(3000,function ($server, $fd, $reactor_id, $data) {
        $server->send($fd, "Client: Send==二次===.\n");
    });
});
$server->start();